using System.Drawing;

namespace MEA.AE_Data
{
	public abstract class LogSignalBase : ConfigLiveViewBase
	{
		public enum ConversionFactor
		{
			one_to_one,
			dec,
			hex,
			bin
		}

		public string description;

		public float Ymin;

		public float Ymax;

		public EUnits unit;

		public EStringFormat format;

		public Color color;

		public double Yscal;

		public ELiveViewSigClass sigClass;

		public LogSignalBase(string description, ELiveViewSigClass sigClass, EStringFormat format, float Ymin, float Ymax, Color color)
		{
			this.description = description;
			this.sigClass = sigClass;
			this.format = format;
			this.Ymin = Ymin;
			this.Ymax = Ymax;
			if (this.Ymax - this.Ymin > 0f)
			{
				Yscal = (this.Ymax - this.Ymin) / 10f;
			}
			else
			{
				Yscal = 1.0;
			}
			this.color = color;
		}
	}
}
